package com.qa.IDao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.qa.pojo.SchoolAndPosition;
import com.qa.pojo.SchoolMacInfo;
import com.qa.pojo.qpy_positioninfo;

public interface qpy_positioninfoMapper {

	List<String> getschools();

	List<SchoolAndPosition> getSchoolAndPositions();

	List<qpy_positioninfo> selectCameralInfo(
			@Param("schoolname") String schoolname,
			@Param("position") String position,
			@Param("examineGroup") List<Integer> examineGroup,
			@Param("caseAscr") int caseAscr,
			@Param("selectFunction") String selectFunction,
			@Param("selectKeyword") String selectKeyword,
			@Param("usersid") int usersid);

	int changeCameralInfoSetState(@Param("positionid") int positionid,
			@Param("state") int state, @Param("setstate") int setstate);

	int insertPositionInfo(@Param("schoolname") String schoolname,
			@Param("position") String position, @Param("ipInfo") String ipInfo,
			@Param("macInfo") String macInfo, @Param("setState") int setState,
			@Param("remark") String remark, @Param("pushUrl") String pushUrl,
			@Param("pullUrl") String pullUrl, @Param("name") String name,
			@Param("cid") String cid);

	int editMacInfo(@Param("positionid") int positionid,
			@Param("schoolname") String schoolname,
			@Param("position") String position, @Param("ipInfo") String ipInfo,
			@Param("setState") int setState, @Param("macInfo") String macInfo,
			@Param("remark") String remark);

	int deleteMacInfo(@Param("signGroupList") List<Integer> signGroupList);

	String selectCameralCid(@Param("id") Integer id);

	List<String> selectCameralCids();

	int updateCameralStatus(@Param("cid") String cid,
			@Param("status") String status);

	List<SchoolMacInfo> selectCameralInfoFromSchoolname(
			@Param("schoolname") String schoolname);
}